import request from '@/api/request'

export function findUsersByPage(start,limit,data) {
  return request({
      url: `/admin/sysAuth/user/findUsersByPage/${start}/${limit}`,
      method: 'post',
      data
  })
}
export function findAllRoles() {
  return request({
      url: `/admin/sysAuth/role/findAllRoles`
  })
}

export function updateUserRoles(data) {
  return request({
    url: `/admin/sysAuth/user/updateUserRoles`,
    method: "PUT",
    data
  })
}

export function saveUserRoles(data) {
  return request({
      url: `/admin/sysAuth/user/saveUserRoles`,
      method: 'post',
      data
  })
}

export function removeUser(id) {
  return request({
      url: `/admin/sysAuth/user/removeUser/${id}`,
      method: 'DELETE'
  })
}


